package com.c.ctgproject.entity.storage

import java.io.Serializable

/**
 * 作者:LiBW
 * 创建日期: 2020/9/15
 * 描述:仓储 配件出库 adapter
 */
class StoragePartsOutEntity :Serializable{
    /**
     * status : 0
     * msg : null
     * data : {"total":42,"list":[{"carCode":"BFC-20200902-000015","partsSalesOrderId":9,"auditTime":"2020-09-15 15:39:22","partsSalesNo":"PJ20090005","createPersonId":1430,"salesPersonName":"多角色","partsInfos":[{"partsName":"轮胎","partsPrice":1000,"partsNumber":4,"partsWeight":20},{"partsName":"排气管","partsPrice":50,"partsNumber":1,"partsWeight":5}]},{"carCode":"BFC-20200902-000015","partsSalesOrderId":10,"auditTime":"2020-09-15 15:39:22","partsSalesNo":"PJ20090006","createPersonId":1430,"salesPersonName":"多角色","partsInfos":[{"partsName":"车屁股","partsPrice":10000,"partsNumber":10,"partsWeight":10},{"partsName":"车门","partsPrice":100,"partsNumber":4,"partsWeight":4}]},{"carCode":"BFC-20200902-000015","partsSalesOrderId":12,"auditTime":"2020-09-15 15:39:22","partsSalesNo":"PJ20090008","createPersonId":1430,"salesPersonName":"多角色","partsInfos":[{"partsName":"电动车","partsPrice":123,"partsNumber":1,"partsWeight":1},{"partsName":"电脑","partsPrice":500,"partsNumber":1,"partsWeight":1}]},{"carCode":"BFC-20200902-000015","partsSalesOrderId":5,"auditTime":"2020-09-15 15:39:22","partsSalesNo":"PJ20090001","createPersonId":1430,"salesPersonName":"多角色","partsInfos":[{"partsName":"你个大头鬼","partsPrice":2,"partsNumber":4,"partsWeight":6},{"partsName":"饿的","partsPrice":5,"partsNumber":5,"partsWeight":122}]},{"carCode":"BFC-20200902-000015","partsSalesOrderId":13,"auditTime":"2020-09-15 15:39:22","partsSalesNo":"PJ20090009","createPersonId":1430,"salesPersonName":"多角色","partsInfos":[{"partsName":"叭叭叭","partsPrice":12,"partsNumber":2,"partsWeight":1}]},{"carCode":"BFC-20200902-000015","partsSalesOrderId":6,"auditTime":"2020-09-15 15:39:22","partsSalesNo":"PJ20090002","createPersonId":1430,"salesPersonName":"多角色","partsInfos":[{"partsName":"看看","partsPrice":100,"partsNumber":2,"partsWeight":25}]}],"pageNum":1,"pageSize":10,"size":6,"startRow":1,"endRow":6,"pages":5,"prePage":0,"nextPage":2,"isFirstPage":true,"isLastPage":false,"hasPreviousPage":false,"hasNextPage":true,"navigatePages":8,"navigatepageNums":[1,2,3,4,5],"navigateFirstPage":1,"navigateLastPage":5}
     * success : true
     */
    var status = 0
    var msg: Any? = null
    var data: DataBean? = null
    var isSuccess = false

    class DataBean :Serializable{
        /**
         * total : 42
         * list : [{"carCode":"BFC-20200902-000015","partsSalesOrderId":9,"auditTime":"2020-09-15 15:39:22","partsSalesNo":"PJ20090005","createPersonId":1430,"salesPersonName":"多角色","partsInfos":[{"partsName":"轮胎","partsPrice":1000,"partsNumber":4,"partsWeight":20},{"partsName":"排气管","partsPrice":50,"partsNumber":1,"partsWeight":5}]},{"carCode":"BFC-20200902-000015","partsSalesOrderId":10,"auditTime":"2020-09-15 15:39:22","partsSalesNo":"PJ20090006","createPersonId":1430,"salesPersonName":"多角色","partsInfos":[{"partsName":"车屁股","partsPrice":10000,"partsNumber":10,"partsWeight":10},{"partsName":"车门","partsPrice":100,"partsNumber":4,"partsWeight":4}]},{"carCode":"BFC-20200902-000015","partsSalesOrderId":12,"auditTime":"2020-09-15 15:39:22","partsSalesNo":"PJ20090008","createPersonId":1430,"salesPersonName":"多角色","partsInfos":[{"partsName":"电动车","partsPrice":123,"partsNumber":1,"partsWeight":1},{"partsName":"电脑","partsPrice":500,"partsNumber":1,"partsWeight":1}]},{"carCode":"BFC-20200902-000015","partsSalesOrderId":5,"auditTime":"2020-09-15 15:39:22","partsSalesNo":"PJ20090001","createPersonId":1430,"salesPersonName":"多角色","partsInfos":[{"partsName":"你个大头鬼","partsPrice":2,"partsNumber":4,"partsWeight":6},{"partsName":"饿的","partsPrice":5,"partsNumber":5,"partsWeight":122}]},{"carCode":"BFC-20200902-000015","partsSalesOrderId":13,"auditTime":"2020-09-15 15:39:22","partsSalesNo":"PJ20090009","createPersonId":1430,"salesPersonName":"多角色","partsInfos":[{"partsName":"叭叭叭","partsPrice":12,"partsNumber":2,"partsWeight":1}]},{"carCode":"BFC-20200902-000015","partsSalesOrderId":6,"auditTime":"2020-09-15 15:39:22","partsSalesNo":"PJ20090002","createPersonId":1430,"salesPersonName":"多角色","partsInfos":[{"partsName":"看看","partsPrice":100,"partsNumber":2,"partsWeight":25}]}]
         * pageNum : 1
         * pageSize : 10
         * size : 6
         * startRow : 1
         * endRow : 6
         * pages : 5
         * prePage : 0
         * nextPage : 2
         * isFirstPage : true
         * isLastPage : false
         * hasPreviousPage : false
         * hasNextPage : true
         * navigatePages : 8
         * navigatepageNums : [1,2,3,4,5]
         * navigateFirstPage : 1
         * navigateLastPage : 5
         */
        var total = 0
        var pageNum = 0
        var pageSize = 0
        var size = 0
        var startRow = 0
        var endRow = 0
        var pages = 0
        var prePage = 0
        var nextPage = 0
        var isIsFirstPage = false
            private set
        var isIsLastPage = false
            private set
        var isHasPreviousPage = false
        var isHasNextPage = false
        var navigatePages = 0
        var navigateFirstPage = 0
        var navigateLastPage = 0
        var list: List<ListBean>? = null
        var navigatepageNums: List<Int>? = null

        fun setIsFirstPage(isFirstPage: Boolean) {
            isIsFirstPage = isFirstPage
        }

        fun setIsLastPage(isLastPage: Boolean) {
            isIsLastPage = isLastPage
        }

        class ListBean :Serializable{
            /**
             * carCode : BFC-20200902-000015
             * partsSalesOrderId : 9
             * auditTime : 2020-09-15 15:39:22
             * partsSalesNo : PJ20090005
             * createPersonId : 1430
             * salesPersonName : 多角色
             * partsInfos : [{"partsName":"轮胎","partsPrice":1000,"partsNumber":4,"partsWeight":20},{"partsName":"排气管","partsPrice":50,"partsNumber":1,"partsWeight":5}]
             */
            var carCode: String? = null
            var partsSalesOrderId = 0
            var auditTime: String? = null
            var partsSalesNo: String? = null
            var createPersonId = 0
            var salesPersonName: String? = null
            var partsInfos: List<PartsInfosBean>? = null

            class PartsInfosBean :Serializable{
                /**
                 * partsName : 轮胎
                 * partsPrice : 1000.0
                 * partsNumber : 4
                 * partsWeight : 20.0
                 */
                var partsName: String? = null
                var partsPrice = 0.0
                var partsNumber = 0
                var partsWeight = 0.0

            }
        }
    }
}